package com.anolesoft.amljmes.delivery.deliwebservice.service.impl;

import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;

public class SpeedImpl {
    public SpeedImpl() {

    }
    private static Client client = null;

    public static Client getInstance() {
        if (client == null) {
//            String QJWLURL = "http://192.168.8.106:8080/services/erpWebService?wsdl";
            String QJWLURL = "http://localhost:8081/services/erpWebService?wsdl";
            JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
            client = dcf.createClient(QJWLURL);
        }
        return client;
    }
}
